package com.example.impl;

import com.example.mapper.WxbMemeberMapper;
import com.example.model.WxbMemeber;
import com.example.util.WxbMemeberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

@Service
public class WxbMemeberServiceImpl implements WxbMemeberService {

    @Autowired
    private WxbMemeberMapper wxbMemeberMapper;

    @Override
    public WxbMemeber findByName(String Account) {
        Example example = new Example(WxbMemeber.class);
        example.and().andEqualTo("account",Account);
        return wxbMemeberMapper.selectOneByExample(example);
    }
}
